#include <gmlib/sm2/internal/sm2p256v1.h>
#include <stdexcept>
#include <cstring>

using namespace sm2::internal;

void test_sm2_fp_tpl()
{
    sm2_fp_t    a, c;
    std::uint8_t c_data[32];

    static std::uint8_t a0[32] = {0xb6,0xf9,0xb8,0x9c,0xc2,0xe5,0xe5,0xc3,0xcf,0x24,0x98,0x15,0x3f,0x2c,0x3c,0x18,0x4e,0xbf,0xfa,0x6b,0x84,0x2a,0x5a,0xb2,0x40,0x7f,0x0f,0xe2,0xca,0x3b,0x39,0xe3};
    static std::uint8_t c0[32] = {0x24,0xed,0x29,0xd8,0x48,0xb1,0xb1,0x4b,0x6d,0x6d,0xc8,0x3f,0xbd,0x84,0xb4,0x48,0xec,0x3f,0xef,0x44,0x8c,0x7f,0x10,0x14,0xc1,0x7d,0x2f,0xa8,0x5e,0xb1,0xad,0xab};
    sm2_fp_from_bytes(a, a0);
    sm2_fp_tpl(c, a);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c0, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_tpl");
    }

    static std::uint8_t a1[32] = {0x4c,0xc6,0x5c,0xf7,0xe0,0x77,0x5d,0x2e,0xc2,0x0e,0x98,0x7a,0x54,0x90,0xb3,0xd8,0xd4,0xa8,0xf0,0xc2,0xf2,0x0f,0x53,0x96,0x2f,0x0c,0x8c,0xd8,0x7b,0x56,0x76,0xcd};
    static std::uint8_t c1[32] = {0xe6,0x53,0x16,0xe7,0xa1,0x66,0x17,0x8c,0x46,0x2b,0xc9,0x6e,0xfd,0xb2,0x1b,0x8a,0x7d,0xfa,0xd2,0x48,0xd6,0x2d,0xfa,0xc2,0x8d,0x25,0xa6,0x89,0x72,0x03,0x64,0x67};
    sm2_fp_from_bytes(a, a1);
    sm2_fp_tpl(c, a);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c1, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_tpl");
    }

    static std::uint8_t a2[32] = {0x39,0x57,0xf6,0xd9,0x3b,0x15,0xd7,0x4f,0x4b,0x42,0xb7,0x33,0xfb,0x81,0xc2,0x7f,0xc4,0x6c,0x66,0x8a,0x86,0x6e,0x45,0x47,0xbc,0x22,0x72,0x0b,0x51,0x52,0x29,0x42};
    static std::uint8_t c2[32] = {0xac,0x07,0xe4,0x8b,0xb1,0x41,0x85,0xed,0xe1,0xc8,0x25,0x9b,0xf2,0x85,0x47,0x7f,0x4d,0x45,0x33,0x9f,0x93,0x4a,0xcf,0xd7,0x34,0x67,0x56,0x21,0xf3,0xf6,0x7b,0xc6};
    sm2_fp_from_bytes(a, a2);
    sm2_fp_tpl(c, a);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c2, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_tpl");
    }

    static std::uint8_t a3[32] = {0x50,0x4f,0x68,0x39,0x31,0x41,0x5a,0x20,0xff,0x59,0x64,0xea,0xcf,0x1f,0xe6,0xb6,0x18,0x71,0xea,0x23,0xdd,0xdb,0xa4,0x06,0x58,0x5a,0x2a,0xf6,0x01,0xbc,0xf1,0xd9};
    static std::uint8_t c3[32] = {0xf0,0xee,0x38,0xab,0x93,0xc4,0x0e,0x62,0xfe,0x0c,0x2e,0xc0,0x6d,0x5f,0xb4,0x22,0x49,0x55,0xbe,0x6b,0x99,0x92,0xec,0x13,0x09,0x0e,0x80,0xe2,0x05,0x36,0xd5,0x8b};
    sm2_fp_from_bytes(a, a3);
    sm2_fp_tpl(c, a);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c3, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_tpl");
    }

    static std::uint8_t a4[32] = {0x92,0xcd,0xa4,0xae,0xf6,0x61,0x28,0x71,0x73,0x45,0x81,0x28,0xa4,0xd8,0xb4,0xd9,0x20,0xcd,0x2d,0x17,0x7f,0x3d,0xc4,0x0b,0x15,0x74,0xef,0x32,0xc5,0x18,0xee,0x1d};
    static std::uint8_t c4[32] = {0xb8,0x68,0xee,0x0d,0xe3,0x23,0x79,0x54,0x59,0xd0,0x83,0x79,0xee,0x8a,0x1e,0x8b,0x62,0x67,0x87,0x47,0x7d,0xb9,0x4c,0x20,0x40,0x5e,0xcd,0x98,0x4f,0x4a,0xca,0x58};
    sm2_fp_from_bytes(a, a4);
    sm2_fp_tpl(c, a);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c4, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_tpl");
    }

    static std::uint8_t a5[32] = {0x28,0x0d,0xcb,0x5d,0x38,0x7e,0x76,0x48,0x68,0x9f,0xc5,0x4b,0x98,0x18,0xd9,0x5b,0x49,0x16,0x5a,0xc1,0xd8,0x28,0x9d,0x7a,0xc6,0x3e,0xc3,0x25,0xde,0xa8,0x30,0x94};
    static std::uint8_t c5[32] = {0x78,0x29,0x62,0x17,0xa9,0x7b,0x62,0xd9,0x39,0xdf,0x4f,0xe2,0xc8,0x4a,0x8c,0x11,0xdb,0x43,0x10,0x45,0x88,0x79,0xd8,0x70,0x52,0xbc,0x49,0x71,0x9b,0xf8,0x91,0xbc};
    sm2_fp_from_bytes(a, a5);
    sm2_fp_tpl(c, a);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c5, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_tpl");
    }

    static std::uint8_t a6[32] = {0xdc,0xe1,0x40,0xad,0x67,0xd5,0x7b,0xa2,0x0c,0x37,0x2c,0xa7,0x04,0x91,0xe4,0x1a,0x9c,0x8c,0xe0,0xde,0x59,0xe8,0x88,0x4f,0x12,0xce,0x32,0xc0,0xe8,0x97,0xf5,0x6c};
    static std::uint8_t c6[32] = {0x96,0xa3,0xc2,0x0a,0x37,0x80,0x72,0xe6,0x24,0xa5,0x85,0xf5,0x0d,0xb5,0xac,0x4f,0xd5,0xa6,0xa2,0x9d,0x0d,0xb9,0x98,0xeb,0x38,0x6a,0x98,0x42,0xb9,0xc7,0xe0,0x46};
    sm2_fp_from_bytes(a, a6);
    sm2_fp_tpl(c, a);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c6, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_tpl");
    }

    static std::uint8_t a7[32] = {0x33,0x81,0x41,0x24,0x5e,0x40,0xf7,0x2a,0xd5,0x51,0xab,0xec,0x12,0xb4,0xf8,0x4a,0x49,0xaf,0xf4,0xa1,0x95,0xbf,0xff,0xc9,0x6b,0x90,0x95,0xa9,0x75,0x2f,0x07,0xc7};
    static std::uint8_t c7[32] = {0x9a,0x83,0xc3,0x6d,0x1a,0xc2,0xe5,0x80,0x7f,0xf5,0x03,0xc4,0x38,0x1e,0xe8,0xde,0xdd,0x0f,0xdd,0xe4,0xc1,0x3f,0xff,0x5c,0x42,0xb1,0xc0,0xfc,0x5f,0x8d,0x17,0x55};
    sm2_fp_from_bytes(a, a7);
    sm2_fp_tpl(c, a);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c7, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_tpl");
    }

    static std::uint8_t a8[32] = {0x0f,0x58,0x16,0xed,0x33,0x1f,0xdb,0x33,0xd6,0x9d,0x66,0x55,0xb3,0xa5,0x28,0x67,0xfb,0x9d,0x3d,0xe9,0xe9,0xcf,0x29,0x49,0x11,0x34,0x24,0xbb,0x2f,0x77,0x55,0x2a};
    static std::uint8_t c8[32] = {0x2e,0x08,0x44,0xc7,0x99,0x5f,0x91,0x9b,0x83,0xd8,0x33,0x01,0x1a,0xef,0x79,0x37,0xf2,0xd7,0xb9,0xbd,0xbd,0x6d,0x7b,0xdb,0x33,0x9c,0x6e,0x31,0x8e,0x65,0xff,0x7e};
    sm2_fp_from_bytes(a, a8);
    sm2_fp_tpl(c, a);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c8, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_tpl");
    }

    static std::uint8_t a9[32] = {0xa3,0xc2,0x89,0x38,0xdb,0x07,0xc0,0xa1,0x16,0xf9,0x92,0x8b,0x7b,0x70,0x05,0x79,0x54,0xc4,0xac,0x6d,0x21,0xb6,0xb2,0x4d,0xe9,0xcd,0xee,0x6a,0xba,0x1a,0x22,0x17};
    static std::uint8_t c9[32] = {0xeb,0x47,0x9b,0xab,0x91,0x17,0x41,0xe3,0x44,0xec,0xb7,0xa2,0x72,0x50,0x10,0x6b,0xfe,0x4e,0x05,0x48,0x65,0x24,0x16,0xe8,0xbd,0x69,0xcb,0x40,0x2e,0x4e,0x66,0x46};
    sm2_fp_from_bytes(a, a9);
    sm2_fp_tpl(c, a);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c9, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_tpl");
    }

    static std::uint8_t a10[32] = {0x0d,0x2a,0x79,0x2e,0x88,0x89,0x7c,0xf2,0xa8,0xa7,0x59,0xff,0xfe,0x8e,0xef,0x40,0xe6,0x2b,0xc9,0xd5,0xaa,0x71,0xa0,0xbb,0xed,0x8b,0x58,0x75,0x75,0x43,0xc5,0xa7};
    static std::uint8_t c10[32] = {0x27,0x7f,0x6b,0x8b,0x99,0x9c,0x76,0xd7,0xf9,0xf6,0x0d,0xff,0xfb,0xac,0xcd,0xc2,0xb2,0x83,0x5d,0x80,0xff,0x54,0xe2,0x33,0xc8,0xa2,0x09,0x60,0x5f,0xcb,0x50,0xf5};
    sm2_fp_from_bytes(a, a10);
    sm2_fp_tpl(c, a);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c10, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_tpl");
    }

    static std::uint8_t a11[32] = {0xfc,0x79,0xec,0xb1,0xf8,0x9e,0x86,0xb2,0x5f,0xa6,0xbf,0xce,0x39,0xb3,0xb1,0xbe,0x79,0x7c,0x42,0x69,0x77,0x75,0x4b,0x48,0x03,0x1a,0xc7,0xe3,0xff,0x4b,0x7b,0x7c};
    static std::uint8_t c11[32] = {0xf5,0x6d,0xc6,0x17,0xe9,0xdb,0x94,0x17,0x1e,0xf4,0x3f,0x6a,0xad,0x1b,0x15,0x3b,0x6c,0x74,0xc7,0x3e,0x66,0x5f,0xe1,0xd6,0x09,0x50,0x57,0xab,0xfd,0xe2,0x72,0x76};
    sm2_fp_from_bytes(a, a11);
    sm2_fp_tpl(c, a);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c11, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_tpl");
    }

    static std::uint8_t a12[32] = {0x17,0x8e,0xc6,0xc4,0xcf,0x6d,0x68,0xd6,0xbd,0x79,0x33,0x08,0xc4,0xa7,0xbc,0xb3,0xd9,0xf7,0xbd,0x44,0xd7,0x64,0xe2,0x45,0xbb,0xe9,0x20,0xec,0xae,0x82,0xf1,0x96};
    static std::uint8_t c12[32] = {0x46,0xac,0x54,0x4e,0x6e,0x48,0x3a,0x84,0x38,0x6b,0x99,0x1a,0x4d,0xf7,0x36,0x1b,0x8d,0xe7,0x37,0xce,0x86,0x2e,0xa6,0xd1,0x33,0xbb,0x62,0xc6,0x0b,0x88,0xd4,0xc2};
    sm2_fp_from_bytes(a, a12);
    sm2_fp_tpl(c, a);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c12, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_tpl");
    }

    static std::uint8_t a13[32] = {0x00,0xe7,0x6c,0x23,0xad,0xa9,0xa6,0xf7,0x49,0x6f,0xa0,0x1d,0x27,0x98,0xe5,0xbf,0xb2,0x85,0x70,0x59,0x57,0x7d,0xb1,0x51,0xa9,0xb1,0x13,0xe6,0x8e,0x1e,0xa0,0x0f};
    static std::uint8_t c13[32] = {0x02,0xb6,0x44,0x6b,0x08,0xfc,0xf4,0xe5,0xdc,0x4e,0xe0,0x57,0x76,0xca,0xb1,0x3f,0x17,0x90,0x51,0x0c,0x06,0x79,0x13,0xf4,0xfd,0x13,0x3b,0xb3,0xaa,0x5b,0xe0,0x2d};
    sm2_fp_from_bytes(a, a13);
    sm2_fp_tpl(c, a);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c13, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_tpl");
    }

    static std::uint8_t a14[32] = {0x9b,0x59,0x71,0x30,0xa0,0x08,0xd7,0x3b,0xa8,0xac,0xb5,0x8b,0x01,0x3c,0x42,0x46,0x60,0x2f,0xf6,0x4b,0xc8,0x53,0xb4,0xe0,0xbf,0x7c,0x83,0x35,0x9f,0xd9,0x8d,0xea};
    static std::uint8_t c14[32] = {0xd2,0x0c,0x53,0x92,0xe0,0x1a,0x85,0xb2,0xfa,0x06,0x20,0xa1,0x03,0xb4,0xc6,0xd3,0x20,0x8f,0xe2,0xe4,0x58,0xfb,0x1e,0xa1,0x3e,0x75,0x89,0xa0,0xdf,0x8c,0xa9,0xbf};
    sm2_fp_from_bytes(a, a14);
    sm2_fp_tpl(c, a);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c14, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_tpl");
    }

    static std::uint8_t a15[32] = {0x6b,0xd8,0x34,0x47,0x5f,0xb6,0xd5,0x79,0x52,0xf5,0x70,0xa1,0xf6,0x1f,0x23,0xaa,0xff,0x03,0x1d,0xd1,0x44,0x4a,0xa2,0x70,0xbc,0x4b,0xc4,0xb7,0xb4,0xa7,0x2a,0xa4};
    static std::uint8_t c15[32] = {0x43,0x88,0x9c,0xd7,0x1f,0x24,0x80,0x6b,0xf8,0xe0,0x51,0xe5,0xe2,0x5d,0x6b,0x00,0xfd,0x09,0x59,0x74,0xcc,0xdf,0xe7,0x51,0x34,0xe3,0x4e,0x27,0x1d,0xf5,0x7f,0xed};
    sm2_fp_from_bytes(a, a15);
    sm2_fp_tpl(c, a);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c15, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_tpl");
    }

    static std::uint8_t a16[32] = {0x3e,0xc6,0xf0,0x3d,0xd7,0x52,0xb6,0x7f,0xb1,0x67,0xba,0x41,0x48,0x42,0x1b,0xa8,0x4a,0x3e,0x78,0x0c,0x98,0x5f,0x2c,0x88,0x6a,0x11,0x90,0xc6,0x94,0x89,0x8f,0x8c};
    static std::uint8_t c16[32] = {0xbc,0x54,0xd0,0xb9,0x85,0xf8,0x23,0x7f,0x14,0x37,0x2e,0xc3,0xd8,0xc6,0x52,0xf8,0xde,0xbb,0x68,0x25,0xc9,0x1d,0x85,0x99,0x3e,0x34,0xb2,0x53,0xbd,0x9c,0xae,0xa4};
    sm2_fp_from_bytes(a, a16);
    sm2_fp_tpl(c, a);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c16, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_tpl");
    }

    static std::uint8_t a17[32] = {0xb1,0x1e,0x50,0x2e,0x21,0xb3,0x4f,0x5f,0x79,0x33,0xcf,0x51,0x56,0x4b,0xfb,0x2a,0x4c,0xf9,0xb9,0xeb,0xf8,0x10,0x43,0x89,0xd5,0x1e,0x7b,0xd1,0xab,0xc0,0x21,0x13};
    static std::uint8_t c17[32] = {0x13,0x5a,0xf0,0x8c,0x65,0x19,0xee,0x1e,0x6b,0x9b,0x6d,0xf4,0x02,0xe3,0xf1,0x7e,0xe6,0xed,0x2d,0xc5,0xe8,0x30,0xca,0x9b,0x7f,0x5b,0x73,0x75,0x03,0x40,0x63,0x3b};
    sm2_fp_from_bytes(a, a17);
    sm2_fp_tpl(c, a);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c17, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_tpl");
    }

    static std::uint8_t a18[32] = {0x85,0x35,0x68,0x0a,0x5b,0xad,0x6a,0x87,0x8b,0xaa,0xc9,0x3a,0x21,0xcf,0xfd,0xf4,0x0a,0x10,0x4e,0x33,0x15,0x12,0xd3,0xc3,0xa6,0x1e,0x7c,0xd6,0xbf,0x8d,0x7a,0xf1};
    static std::uint8_t c18[32] = {0x8f,0xa0,0x38,0x20,0x13,0x08,0x3f,0x96,0xa3,0x00,0x5b,0xae,0x65,0x6f,0xf9,0xdc,0x1e,0x30,0xea,0x9a,0x3f,0x38,0x7b,0x49,0xf2,0x5b,0x76,0x84,0x3e,0xa8,0x70,0xd4};
    sm2_fp_from_bytes(a, a18);
    sm2_fp_tpl(c, a);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c18, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_tpl");
    }

    static std::uint8_t a19[32] = {0xe6,0x50,0xe4,0xf3,0x0d,0xc2,0xf7,0x1b,0x73,0x91,0x98,0x28,0x64,0x55,0xfe,0x31,0x12,0x2d,0xca,0x3a,0xf7,0x21,0x2f,0xaa,0xd6,0xda,0xb8,0x49,0x72,0x6f,0x34,0x98};
    static std::uint8_t c19[32] = {0xb2,0xf2,0xae,0xdb,0x29,0x48,0xe5,0x52,0x5a,0xb4,0xc8,0x79,0x2d,0x01,0xfa,0x93,0x36,0x89,0x5e,0xb2,0xe5,0x63,0x8e,0xfe,0x84,0x90,0x28,0xdc,0x57,0x4d,0x9d,0xca};
    sm2_fp_from_bytes(a, a19);
    sm2_fp_tpl(c, a);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c19, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_tpl");
    }

    static std::uint8_t a20[32] = {0x18,0x5d,0xb7,0x64,0xe9,0x26,0x7a,0x72,0xb8,0xf3,0xaf,0x24,0x30,0x89,0x67,0x56,0xbc,0xe8,0xe2,0xd5,0x64,0x50,0x78,0xf8,0xb8,0x5c,0x52,0x53,0x32,0xa2,0x13,0xaf};
    static std::uint8_t c20[32] = {0x49,0x19,0x26,0x2e,0xbb,0x73,0x6f,0x58,0x2a,0xdb,0x0d,0x6c,0x91,0x9c,0x36,0x04,0x36,0xba,0xa8,0x80,0x2c,0xf1,0x6a,0xea,0x29,0x14,0xf6,0xf9,0x97,0xe6,0x3b,0x0d};
    sm2_fp_from_bytes(a, a20);
    sm2_fp_tpl(c, a);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c20, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_tpl");
    }

    static std::uint8_t a21[32] = {0x5f,0xf6,0xc7,0xb0,0x7a,0x2d,0x20,0x96,0xdb,0x8e,0x07,0xbb,0x6c,0x1f,0xf6,0x74,0xe2,0x72,0x77,0x49,0x0c,0x39,0x7a,0x74,0x04,0xd9,0x97,0x0f,0x32,0x0c,0xc3,0x9e};
    static std::uint8_t c21[32] = {0x1f,0xe4,0x57,0x12,0x6e,0x87,0x61,0xc4,0x92,0xaa,0x17,0x32,0x44,0x5f,0xe3,0x5e,0xa7,0x57,0x65,0xdc,0x24,0xac,0x6f,0x5b,0x0e,0x8c,0xc5,0x2d,0x96,0x26,0x4a,0xdb};
    sm2_fp_from_bytes(a, a21);
    sm2_fp_tpl(c, a);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c21, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_tpl");
    }

    static std::uint8_t a22[32] = {0xb2,0x21,0xff,0x98,0xe9,0x0d,0x91,0xe9,0xcb,0x4a,0xf7,0x21,0x65,0x16,0xfa,0xb1,0xf2,0x26,0xcd,0xb4,0x26,0xc7,0x70,0xd9,0x3b,0xc6,0x0c,0xc4,0xd2,0x62,0x65,0xdb};
    static std::uint8_t c22[32] = {0x16,0x65,0xfe,0xcc,0xbb,0x28,0xb5,0xbd,0x61,0xe0,0xe5,0x64,0x2f,0x44,0xf0,0x15,0xd6,0x74,0x69,0x1e,0x74,0x56,0x52,0x89,0xb3,0x52,0x26,0x4e,0x77,0x27,0x31,0x93};
    sm2_fp_from_bytes(a, a22);
    sm2_fp_tpl(c, a);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c22, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_tpl");
    }

    static std::uint8_t a23[32] = {0xc9,0xd7,0xe6,0xd1,0x1f,0x45,0x60,0xc5,0xed,0xff,0x62,0xe7,0xc8,0xe0,0x76,0x9a,0x69,0x8e,0x97,0x6f,0x8b,0x68,0x12,0x60,0xad,0x52,0xb9,0xb9,0x71,0xd6,0x68,0x2d};
    static std::uint8_t c23[32] = {0x5d,0x87,0xb4,0x75,0x5d,0xd0,0x22,0x51,0xc9,0xfe,0x28,0xb7,0x5a,0xa1,0x63,0xcf,0x3c,0xab,0xc6,0x50,0xa2,0x38,0x37,0x20,0x07,0xf8,0x2d,0x2c,0x55,0x83,0x38,0x89};
    sm2_fp_from_bytes(a, a23);
    sm2_fp_tpl(c, a);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c23, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_tpl");
    }

    static std::uint8_t a24[32] = {0x6e,0x5c,0xc2,0xf0,0x7f,0x08,0x95,0x6f,0x7c,0xc0,0x59,0x8a,0xbe,0x03,0xb9,0x9d,0x90,0x08,0xba,0xfe,0x1b,0xe8,0x2d,0x6e,0xd0,0x69,0x37,0xf9,0x03,0x6c,0x63,0xbb};
    static std::uint8_t c24[32] = {0x4b,0x16,0x48,0xd2,0x7d,0x19,0xc0,0x4e,0x76,0x41,0x0c,0xa0,0x3a,0x0b,0x2c,0xd8,0xb0,0x1a,0x30,0xfb,0x53,0xb8,0x88,0x4b,0x71,0x3b,0xa7,0xeb,0x0a,0x45,0x2b,0x32};
    sm2_fp_from_bytes(a, a24);
    sm2_fp_tpl(c, a);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c24, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_tpl");
    }

    static std::uint8_t a25[32] = {0x85,0x86,0x03,0xf8,0x14,0x97,0x80,0xd7,0xa9,0xec,0x73,0xab,0x52,0x21,0xe4,0x7f,0x8e,0x18,0x21,0xaf,0xdb,0x66,0x9b,0xd2,0xbf,0x93,0xf4,0x3a,0x5c,0xd7,0xdb,0xfd};
    static std::uint8_t c25[32] = {0x90,0x92,0x0b,0xe9,0x3d,0xc6,0x82,0x86,0xfd,0xc5,0x5b,0x01,0xf6,0x65,0xad,0x7e,0xaa,0x48,0x65,0x10,0x92,0x33,0xd3,0x77,0x3e,0xbb,0xdc,0xaf,0x16,0x87,0x93,0xf8};
    sm2_fp_from_bytes(a, a25);
    sm2_fp_tpl(c, a);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c25, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_tpl");
    }

    static std::uint8_t a26[32] = {0xb9,0xfa,0x35,0xe4,0x6c,0x48,0xa6,0x84,0x28,0x40,0xfb,0x72,0x40,0x8e,0x6f,0xb7,0xc5,0xa7,0x13,0x67,0xe0,0x18,0xa4,0xfc,0xae,0x1f,0x83,0xf4,0x8b,0x08,0x26,0x7e};
    static std::uint8_t c26[32] = {0x2d,0xee,0xa1,0xaf,0x44,0xd9,0xf3,0x8c,0x78,0xc2,0xf2,0x56,0xc1,0xab,0x4f,0x27,0x50,0xf5,0x3a,0x39,0xa0,0x49,0xee,0xf4,0x0a,0x5e,0x8b,0xdd,0xa1,0x18,0x73,0x7c};
    sm2_fp_from_bytes(a, a26);
    sm2_fp_tpl(c, a);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c26, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_tpl");
    }

    static std::uint8_t a27[32] = {0xd1,0xe4,0x1a,0x7b,0xd4,0x29,0xbe,0x66,0x8e,0x14,0xd3,0xbe,0x89,0xf7,0x7c,0x62,0xa7,0x9a,0x3b,0x86,0xfa,0xaa,0xdd,0x86,0xcf,0x3c,0x7b,0xaf,0x7a,0xfe,0xca,0xad};
    static std::uint8_t c27[32] = {0x75,0xac,0x4f,0x75,0x7c,0x7d,0x3b,0x33,0xaa,0x3e,0x7b,0x3b,0x9d,0xe6,0x75,0x27,0xf6,0xce,0xb2,0x96,0xf0,0x00,0x98,0x92,0x6d,0xb5,0x73,0x0e,0x70,0xfc,0x60,0x09};
    sm2_fp_from_bytes(a, a27);
    sm2_fp_tpl(c, a);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c27, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_tpl");
    }

    static std::uint8_t a28[32] = {0x1f,0xfb,0xc5,0xe2,0xe2,0x66,0x31,0xec,0x18,0xa6,0x45,0x55,0xb4,0xa4,0xb5,0xa2,0xb0,0xd0,0xb9,0x14,0x78,0x58,0x70,0x0a,0x84,0x94,0xd4,0xce,0x5d,0xc3,0xe1,0x54};
    static std::uint8_t c28[32] = {0x5f,0xf3,0x51,0xa8,0xa7,0x32,0x95,0xc4,0x49,0xf2,0xd0,0x01,0x1d,0xee,0x20,0xe8,0x12,0x72,0x2b,0x3d,0x69,0x09,0x50,0x1f,0x8d,0xbe,0x7e,0x6b,0x19,0x4b,0xa3,0xfc};
    sm2_fp_from_bytes(a, a28);
    sm2_fp_tpl(c, a);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c28, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_tpl");
    }

    static std::uint8_t a29[32] = {0xbd,0x9a,0xb4,0x83,0x55,0xd8,0x57,0x27,0xe4,0x29,0x10,0x50,0x48,0x4e,0xe4,0x5d,0xfd,0xc3,0xdb,0x0f,0x89,0xb8,0x6e,0x1a,0x9b,0x39,0x88,0xc8,0xa1,0xe0,0xf3,0x8c};
    static std::uint8_t c29[32] = {0x38,0xd0,0x1d,0x8c,0x01,0x89,0x05,0x77,0xac,0x7b,0x30,0xf0,0xd8,0xec,0xad,0x19,0xf9,0x4b,0x91,0x30,0x9d,0x29,0x4a,0x4d,0xd1,0xac,0x9a,0x59,0xe5,0xa2,0xda,0xa6};
    sm2_fp_from_bytes(a, a29);
    sm2_fp_tpl(c, a);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c29, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_tpl");
    }

    static std::uint8_t a30[32] = {0x9d,0xd7,0x88,0x33,0x42,0x6f,0xf4,0x63,0x9e,0xe6,0x5d,0x5b,0x3d,0xb4,0xc5,0xb6,0x15,0x8a,0x4d,0xc5,0xb8,0xe0,0x31,0x85,0x12,0xb0,0x6f,0xc4,0x75,0x3f,0xa5,0xe9};
    static std::uint8_t c30[32] = {0xd9,0x86,0x98,0x9a,0xc7,0x4f,0xdd,0x2a,0xdc,0xb3,0x18,0x11,0xb9,0x1e,0x51,0x22,0x40,0x9e,0xe9,0x52,0x2a,0xa0,0x94,0x8e,0x38,0x11,0x4f,0x4d,0x5f,0xbe,0xf1,0xbc};
    sm2_fp_from_bytes(a, a30);
    sm2_fp_tpl(c, a);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c30, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_tpl");
    }

    static std::uint8_t a31[32] = {0x31,0xe6,0x9b,0x24,0x82,0x08,0xbb,0x1f,0xc0,0x97,0x86,0xc6,0x2c,0x77,0x66,0x3c,0xdb,0x67,0xd5,0x28,0x8e,0xf4,0xdd,0x8a,0xa1,0xb9,0x31,0x77,0xcd,0x25,0x3e,0xb0};
    static std::uint8_t c31[32] = {0x95,0xb3,0xd1,0x6d,0x86,0x1a,0x31,0x5f,0x41,0xc6,0x94,0x52,0x85,0x66,0x32,0xb6,0x92,0x37,0x7f,0x79,0xac,0xde,0x98,0x9f,0xe5,0x2b,0x94,0x67,0x67,0x6f,0xbc,0x10};
    sm2_fp_from_bytes(a, a31);
    sm2_fp_tpl(c, a);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c31, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_tpl");
    }

    static std::uint8_t a32[32] = {0x74,0x23,0xea,0xa1,0x56,0x9f,0x44,0x04,0xb6,0xc8,0x3f,0x92,0x2f,0xee,0xbf,0x21,0x40,0xa8,0x5b,0x6b,0x27,0xbb,0x3f,0xdc,0x95,0x12,0x5a,0x8f,0xb2,0x1f,0x17,0xd2};
    static std::uint8_t c32[32] = {0x5c,0x6b,0xbf,0xe5,0x03,0xdd,0xcc,0x0e,0x24,0x58,0xbe,0xb6,0x8f,0xcc,0x3d,0x63,0xc1,0xf9,0x12,0x42,0x77,0x31,0xbf,0x94,0xbf,0x37,0x0f,0xaf,0x16,0x5d,0x47,0x77};
    sm2_fp_from_bytes(a, a32);
    sm2_fp_tpl(c, a);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c32, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_tpl");
    }

    static std::uint8_t a33[32] = {0xc2,0xca,0xb4,0x0e,0x7b,0x3f,0x82,0x8d,0xdc,0x4b,0x83,0x86,0x14,0xcd,0xb4,0x36,0x18,0x11,0xd8,0x46,0x65,0x8d,0x74,0x82,0x0d,0xca,0xb2,0x88,0x83,0xc8,0xd4,0x21};
    static std::uint8_t c33[32] = {0x48,0x60,0x1c,0x2d,0x71,0xbe,0x87,0xa9,0x94,0xe2,0x8a,0x92,0x3e,0x69,0x1c,0xa2,0x48,0x35,0x88,0xd5,0x30,0xa8,0x5d,0x84,0x29,0x60,0x17,0x99,0x8b,0x5a,0x7c,0x65};
    sm2_fp_from_bytes(a, a33);
    sm2_fp_tpl(c, a);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c33, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_tpl");
    }

    static std::uint8_t a34[32] = {0x3c,0xd2,0x8f,0x78,0xd0,0xfb,0xf9,0x0f,0xfa,0x9d,0xfc,0xb4,0x9e,0x63,0xd8,0x80,0xcf,0x83,0x6e,0x8c,0x96,0x1a,0x00,0x1f,0x1b,0x5b,0xb5,0xe8,0xd3,0x9c,0xbe,0x45};
    static std::uint8_t c34[32] = {0xb6,0x77,0xae,0x6a,0x72,0xf3,0xeb,0x2f,0xef,0xd9,0xf6,0x1d,0xdb,0x2b,0x89,0x82,0x6e,0x8a,0x4b,0xa5,0xc2,0x4e,0x00,0x5d,0x52,0x13,0x21,0xba,0x7a,0xd6,0x3a,0xcf};
    sm2_fp_from_bytes(a, a34);
    sm2_fp_tpl(c, a);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c34, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_tpl");
    }

    static std::uint8_t a35[32] = {0xcf,0x71,0x27,0xd2,0x0c,0x3d,0x46,0x05,0xc9,0x01,0xdb,0x31,0x33,0x0f,0xf7,0x3b,0x66,0xeb,0xbd,0xa2,0xa0,0x5f,0x6d,0x9e,0xc3,0xbb,0x16,0x1f,0xa9,0x65,0x1e,0xdb};
    static std::uint8_t c35[32] = {0x6e,0x53,0x77,0x78,0x24,0xb7,0xd2,0x11,0x5b,0x05,0x91,0x93,0x99,0x2f,0xe5,0xb2,0x34,0xc3,0x38,0xe9,0xe1,0x1e,0x48,0xda,0x4b,0x31,0x42,0x5e,0xfc,0x2f,0x5c,0x93};
    sm2_fp_from_bytes(a, a35);
    sm2_fp_tpl(c, a);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c35, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_tpl");
    }

    static std::uint8_t a36[32] = {0x84,0x3d,0xf0,0xc9,0x48,0xa3,0xbc,0xea,0x18,0xba,0x47,0x6d,0x60,0xe7,0x21,0xb2,0xd5,0xd1,0x50,0x74,0x61,0x08,0x17,0x4d,0xa1,0xa6,0x6d,0xb5,0x00,0xba,0xef,0x8c};
    static std::uint8_t c36[32] = {0x8c,0xb9,0xd2,0x5c,0xd9,0xeb,0x36,0xbe,0x4a,0x2e,0xd6,0x48,0x22,0xb5,0x65,0x18,0x81,0x73,0xf1,0x5e,0x23,0x18,0x45,0xe7,0xe4,0xf3,0x49,0x1f,0x02,0x30,0xce,0xa5};
    sm2_fp_from_bytes(a, a36);
    sm2_fp_tpl(c, a);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c36, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_tpl");
    }

    static std::uint8_t a37[32] = {0xab,0x29,0xef,0x09,0x86,0x49,0x42,0x27,0x38,0xfb,0x0c,0x77,0x8d,0xb2,0xae,0x68,0x91,0xe2,0xe9,0xa5,0x8f,0xa3,0xcb,0xbd,0x02,0xf8,0xad,0xea,0x98,0x05,0x6f,0xf7};
    static std::uint8_t c37[32] = {0x01,0x7d,0xcd,0x1e,0x92,0xdb,0xc6,0x75,0xaa,0xf1,0x25,0x66,0xa9,0x18,0x0b,0x39,0xb5,0xa8,0xbc,0xf2,0xae,0xeb,0x63,0x35,0x08,0xea,0x09,0xbf,0xc8,0x10,0x4f,0xe7};
    sm2_fp_from_bytes(a, a37);
    sm2_fp_tpl(c, a);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c37, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_tpl");
    }

    static std::uint8_t a38[32] = {0x53,0x35,0x52,0xa2,0x28,0xad,0x4b,0x24,0x1b,0x7d,0xec,0xa0,0xbd,0x2d,0x3d,0x6d,0x05,0xb6,0x64,0x54,0x3b,0x3c,0x42,0x97,0x1f,0x1d,0xc3,0x41,0x08,0xe2,0x43,0x4d};
    static std::uint8_t c38[32] = {0xf9,0x9f,0xf7,0xe6,0x7a,0x07,0xe1,0x6c,0x52,0x79,0xc5,0xe2,0x37,0x87,0xb8,0x47,0x11,0x23,0x2c,0xfc,0xb1,0xb4,0xc7,0xc5,0x5d,0x59,0x49,0xc3,0x1a,0xa6,0xc9,0xe7};
    sm2_fp_from_bytes(a, a38);
    sm2_fp_tpl(c, a);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c38, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_tpl");
    }

    static std::uint8_t a39[32] = {0x78,0x39,0x56,0xc9,0x3b,0x7a,0x34,0xc0,0x57,0x54,0x23,0x30,0xa7,0x08,0x0a,0x3b,0x52,0x8d,0xb9,0x1b,0x80,0xb4,0x74,0x0c,0x97,0xff,0x0b,0xc5,0x1f,0xac,0x98,0x71};
    static std::uint8_t c39[32] = {0x68,0xac,0x04,0x5c,0xb2,0x6e,0x9e,0x41,0x05,0xfc,0x69,0x91,0xf5,0x18,0x1e,0xb1,0xf7,0xa9,0x2b,0x53,0x82,0x1d,0x5c,0x24,0xc7,0xfd,0x23,0x4f,0x5f,0x05,0xc9,0x54};
    sm2_fp_from_bytes(a, a39);
    sm2_fp_tpl(c, a);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c39, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_tpl");
    }

    static std::uint8_t a40[32] = {0xd2,0xd7,0x21,0xa6,0xf9,0xe7,0xc7,0xa9,0x20,0x65,0x33,0x0a,0xa4,0x39,0xd8,0x7e,0xd2,0xf3,0x27,0x12,0x2c,0x15,0x52,0xd5,0x91,0x26,0x4f,0xaf,0x58,0x83,0x72,0x78};
    static std::uint8_t c40[32] = {0x78,0x85,0x64,0xf6,0xed,0xb7,0x56,0xfb,0x61,0x2f,0x99,0x1f,0xec,0xad,0x89,0x7c,0x78,0xd9,0x75,0x38,0x84,0x3f,0xf8,0x7e,0xb3,0x72,0xef,0x0e,0x09,0x8a,0x57,0x6a};
    sm2_fp_from_bytes(a, a40);
    sm2_fp_tpl(c, a);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c40, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_tpl");
    }

    static std::uint8_t a41[32] = {0x8c,0x05,0x9a,0x93,0xe5,0x5b,0xc7,0xc6,0xd6,0xb8,0x5f,0x06,0xa2,0xde,0x59,0x1f,0x5d,0x3e,0x07,0x66,0x3f,0x98,0xce,0xa2,0x12,0xea,0x9d,0x65,0x25,0xb8,0xdc,0xa4};
    static std::uint8_t c41[32] = {0xa4,0x10,0xcf,0xbc,0xb0,0x13,0x57,0x54,0x84,0x29,0x1d,0x13,0xe8,0x9b,0x0b,0x5e,0x17,0xba,0x16,0x33,0xbe,0xca,0x6b,0xe5,0x38,0xbf,0xd8,0x2f,0x71,0x2a,0x95,0xed};
    sm2_fp_from_bytes(a, a41);
    sm2_fp_tpl(c, a);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c41, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_tpl");
    }

    static std::uint8_t a42[32] = {0x53,0x39,0x52,0x13,0x77,0xbc,0xdb,0x67,0x3f,0xd2,0x38,0x1e,0x6e,0x28,0x82,0x28,0xc2,0xa7,0x1c,0xae,0x75,0x92,0x8e,0x63,0xbf,0xad,0x3e,0x86,0xcd,0x32,0x0d,0x94};
    static std::uint8_t c42[32] = {0xf9,0xab,0xf6,0x3a,0x67,0x36,0x92,0x35,0xbf,0x76,0xa8,0x5b,0x4a,0x79,0x86,0x7a,0x47,0xf5,0x56,0x0b,0x60,0xb7,0xab,0x2b,0x3f,0x07,0xbb,0x94,0x67,0x96,0x28,0xbc};
    sm2_fp_from_bytes(a, a42);
    sm2_fp_tpl(c, a);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c42, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_tpl");
    }

    static std::uint8_t a43[32] = {0xb6,0xef,0x88,0x71,0x99,0xed,0xdd,0x64,0xc0,0x7e,0x64,0x8d,0x29,0x24,0x14,0x35,0xda,0xe0,0x92,0xa8,0x17,0x33,0x36,0xc5,0x02,0x4e,0xe5,0xb7,0xd9,0x51,0xed,0x6d};
    static std::uint8_t c43[32] = {0x24,0xce,0x99,0x56,0xcd,0xc9,0x98,0x2e,0x41,0x7b,0x2d,0xa7,0x7b,0x6c,0x3c,0xa1,0x90,0xa1,0xb7,0xfa,0x45,0x99,0xa4,0x4d,0x06,0xec,0xb1,0x27,0x8b,0xf5,0xc8,0x49};
    sm2_fp_from_bytes(a, a43);
    sm2_fp_tpl(c, a);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c43, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_tpl");
    }

    static std::uint8_t a44[32] = {0xf1,0x8a,0x09,0xb3,0x3b,0x4d,0x65,0xc6,0x23,0x29,0x8a,0x4a,0x8b,0x5f,0xe1,0x7d,0xa7,0x9c,0x09,0x64,0x3e,0x2f,0x41,0xfa,0x38,0xd9,0xa0,0xfe,0x85,0x4e,0x50,0x8d};
    static std::uint8_t c44[32] = {0xd4,0x9e,0x1d,0x1b,0xb1,0xe8,0x31,0x52,0x69,0x7c,0x9e,0xdf,0xa2,0x1f,0xa4,0x78,0xf6,0xd4,0x1c,0x2e,0xba,0x8d,0xc5,0xec,0xaa,0x8c,0xe2,0xfb,0x8f,0xea,0xf1,0xa9};
    sm2_fp_from_bytes(a, a44);
    sm2_fp_tpl(c, a);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c44, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_tpl");
    }

    static std::uint8_t a45[32] = {0x4b,0x30,0x73,0xa5,0x2b,0x57,0xda,0xc0,0x43,0xc2,0x7f,0x0d,0xc1,0x46,0xe0,0xd9,0x95,0xb9,0xe2,0x42,0x69,0xc5,0x7c,0x63,0x33,0x82,0x08,0xa1,0x27,0x11,0x90,0x19};
    static std::uint8_t c45[32] = {0xe1,0x91,0x5a,0xef,0x82,0x07,0x90,0x40,0xcb,0x47,0x7d,0x29,0x43,0xd4,0xa2,0x8c,0xc1,0x2d,0xa6,0xc7,0x3d,0x50,0x75,0x29,0x9a,0x86,0x19,0xe3,0x75,0x34,0xb0,0x4b};
    sm2_fp_from_bytes(a, a45);
    sm2_fp_tpl(c, a);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c45, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_tpl");
    }

    static std::uint8_t a46[32] = {0x2c,0x2d,0xcb,0x66,0x84,0xd1,0x44,0x67,0x26,0x7b,0x16,0x02,0x13,0x70,0xef,0xb8,0xaa,0x0d,0x81,0x1a,0xb5,0xae,0xc0,0x2d,0x43,0xb6,0xa1,0xd9,0xd3,0xa1,0x91,0x28};
    static std::uint8_t c46[32] = {0x84,0x89,0x62,0x33,0x8e,0x73,0xcd,0x35,0x73,0x71,0x42,0x06,0x3a,0x52,0xcf,0x29,0xfe,0x28,0x83,0x50,0x21,0x0c,0x40,0x87,0xcb,0x23,0xe5,0x8d,0x7a,0xe4,0xb3,0x78};
    sm2_fp_from_bytes(a, a46);
    sm2_fp_tpl(c, a);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c46, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_tpl");
    }

    static std::uint8_t a47[32] = {0x39,0x08,0x97,0xa0,0x9c,0x37,0x08,0x44,0xb2,0x30,0x9d,0xc4,0x50,0x1c,0xf2,0x9c,0xca,0x43,0x1d,0x4f,0xe6,0x24,0xc5,0xad,0xf7,0x80,0x8a,0x8f,0x9f,0xc9,0x31,0x98};
    static std::uint8_t c47[32] = {0xab,0x19,0xc6,0xe1,0xd4,0xa5,0x18,0xce,0x16,0x91,0xd9,0x4c,0xf0,0x56,0xd7,0xd6,0x5e,0xc9,0x57,0xef,0xb2,0x6e,0x51,0x09,0xe6,0x81,0x9f,0xae,0xdf,0x5b,0x94,0xc8};
    sm2_fp_from_bytes(a, a47);
    sm2_fp_tpl(c, a);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c47, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_tpl");
    }

    static std::uint8_t a48[32] = {0xe1,0x5b,0xbf,0x21,0x1d,0xec,0xc1,0xaa,0x44,0x78,0xfd,0x99,0x16,0x3b,0x6e,0xe2,0xd5,0x18,0x2f,0xe4,0x81,0x2b,0x67,0xa2,0x81,0xf9,0xfb,0xbc,0x18,0x98,0xf2,0xc4};
    static std::uint8_t c48[32] = {0xa4,0x13,0x3d,0x65,0x59,0xc6,0x44,0xfe,0xcd,0x6a,0xf8,0xcb,0x42,0xb2,0x4c,0xa8,0x7f,0x48,0x8f,0xaf,0x83,0x82,0x36,0xe5,0x85,0xed,0xf3,0x34,0x49,0xca,0xd8,0x4e};
    sm2_fp_from_bytes(a, a48);
    sm2_fp_tpl(c, a);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c48, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_tpl");
    }

    static std::uint8_t a49[32] = {0xab,0xd6,0xef,0xea,0x6c,0xcd,0x96,0x9f,0xd3,0xab,0x25,0x5e,0x13,0xb4,0x39,0xe4,0x6e,0x57,0x81,0xf8,0xf5,0x3e,0x02,0xd5,0x71,0xa5,0xc7,0x6e,0x8f,0xfc,0xb9,0x4b};
    static std::uint8_t c49[32] = {0x03,0x84,0xcf,0xc1,0x46,0x68,0xc3,0xdf,0x7b,0x01,0x70,0x1a,0x3b,0x1c,0xad,0xad,0x4b,0x06,0x85,0xec,0xdf,0xba,0x08,0x7e,0x54,0xf1,0x56,0x4b,0xaf,0xf6,0x2b,0xe3};
    sm2_fp_from_bytes(a, a49);
    sm2_fp_tpl(c, a);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c49, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_tpl");
    }

    static std::uint8_t a50[32] = {0x60,0x65,0x58,0x6b,0xe0,0xda,0xbb,0x32,0x05,0xbf,0x46,0x60,0xbc,0x72,0x76,0xf7,0x72,0x6f,0xff,0xbd,0x59,0xc3,0xd7,0xb8,0xcc,0xf2,0x0f,0x04,0x9b,0x0e,0x6a,0xde};
    static std::uint8_t c50[32] = {0x21,0x30,0x09,0x44,0xa2,0x90,0x31,0x96,0x11,0x3d,0xd3,0x22,0x35,0x57,0x64,0xe6,0x57,0x4f,0xff,0x39,0x0d,0x4b,0x87,0x29,0x66,0xd6,0x2d,0x0d,0xd1,0x2b,0x40,0x9b};
    sm2_fp_from_bytes(a, a50);
    sm2_fp_tpl(c, a);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c50, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_tpl");
    }

    static std::uint8_t a51[32] = {0x20,0x38,0x78,0xe3,0xd8,0xd6,0xfa,0x08,0xc8,0x44,0xc2,0xf0,0x76,0x58,0x5c,0x5d,0x10,0x17,0x9d,0x32,0xb7,0xaf,0x04,0xf6,0xa2,0x28,0x0d,0x85,0x2b,0xae,0x92,0x33};
    static std::uint8_t c51[32] = {0x60,0xa9,0x6a,0xab,0x8a,0x84,0xee,0x1a,0x58,0xce,0x48,0xd1,0x63,0x09,0x15,0x17,0x30,0x46,0xd7,0x98,0x27,0x0d,0x0e,0xe3,0xe6,0x78,0x28,0x8f,0x83,0x0b,0xb6,0x99};
    sm2_fp_from_bytes(a, a51);
    sm2_fp_tpl(c, a);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c51, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_tpl");
    }

    static std::uint8_t a52[32] = {0x1c,0x6a,0x1e,0x14,0xa9,0x82,0x34,0xf3,0x39,0x6e,0xe3,0x5e,0xfa,0x50,0xea,0x3f,0x0e,0x92,0x95,0xea,0x58,0xbc,0xcc,0x16,0x03,0x50,0x4e,0x70,0x52,0x72,0x66,0x81};
    static std::uint8_t c52[32] = {0x55,0x3e,0x5a,0x3d,0xfc,0x86,0x9e,0xd9,0xac,0x4c,0xaa,0x1c,0xee,0xf2,0xbe,0xbd,0x2b,0xb7,0xc1,0xbf,0x0a,0x36,0x64,0x42,0x09,0xf0,0xeb,0x50,0xf7,0x57,0x33,0x83};
    sm2_fp_from_bytes(a, a52);
    sm2_fp_tpl(c, a);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c52, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_tpl");
    }

    static std::uint8_t a53[32] = {0x1b,0x89,0x30,0xe0,0x3d,0x89,0xf8,0x8a,0xb8,0x47,0xfc,0xc4,0xfd,0xca,0xc6,0xf6,0xad,0xb9,0xb1,0xa2,0xe1,0xa0,0xe8,0xb9,0xd4,0xd8,0x3b,0x04,0xab,0x80,0x12,0xf4};
    static std::uint8_t c53[32] = {0x52,0x9b,0x92,0xa0,0xb8,0x9d,0xe9,0xa0,0x28,0xd7,0xf6,0x4e,0xf9,0x60,0x54,0xe4,0x09,0x2d,0x14,0xe8,0xa4,0xe2,0xba,0x2d,0x7e,0x88,0xb1,0x0e,0x02,0x80,0x38,0xdc};
    sm2_fp_from_bytes(a, a53);
    sm2_fp_tpl(c, a);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c53, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_tpl");
    }

    static std::uint8_t a54[32] = {0xba,0x9c,0x51,0x15,0x09,0x73,0x3b,0x38,0xb5,0x6e,0xe0,0xe5,0x28,0xc3,0x16,0x1f,0x5e,0x06,0x2b,0x15,0x7b,0x05,0x6e,0x91,0x4d,0x80,0xe2,0xae,0xed,0xe8,0xa8,0xc4};
    static std::uint8_t c54[32] = {0x2f,0xd4,0xf3,0x41,0x1c,0x59,0xb1,0xaa,0x20,0x4c,0xa2,0xaf,0x7a,0x49,0x42,0x5e,0x1a,0x12,0x81,0x42,0x71,0x10,0x4b,0xb1,0xe8,0x82,0xa8,0x0c,0xc9,0xb9,0xfa,0x4e};
    sm2_fp_from_bytes(a, a54);
    sm2_fp_tpl(c, a);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c54, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_tpl");
    }

    static std::uint8_t a55[32] = {0x68,0x7e,0x40,0x7b,0x00,0x7c,0xca,0x27,0x16,0x48,0x3c,0x40,0xfe,0x49,0x04,0x03,0xa4,0xb7,0xc1,0x6a,0xb7,0xbe,0x9a,0x3b,0x41,0xe0,0xe8,0xbf,0xd6,0x33,0x52,0x7c};
    static std::uint8_t c55[32] = {0x39,0x7a,0xc1,0x72,0x01,0x76,0x5e,0x75,0x42,0xd8,0xb4,0xc2,0xfa,0xdb,0x0c,0x0a,0xee,0x27,0x44,0x41,0x27,0x3b,0xce,0xb0,0xc5,0xa2,0xba,0x3f,0x82,0x99,0xf7,0x75};
    sm2_fp_from_bytes(a, a55);
    sm2_fp_tpl(c, a);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c55, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_tpl");
    }

    static std::uint8_t a56[32] = {0xc5,0xca,0x88,0x27,0xc5,0x8e,0xd5,0xd0,0xff,0x7e,0xf6,0xed,0xaf,0xbc,0x6a,0x9a,0xa4,0x55,0xf3,0x31,0x59,0x76,0xd7,0xff,0xd1,0x93,0x77,0x32,0x18,0x06,0x1c,0x2a};
    static std::uint8_t c56[32] = {0x51,0x5f,0x98,0x79,0x50,0xac,0x81,0x72,0xfe,0x7c,0xe4,0xc9,0x0f,0x35,0x3f,0xcf,0xed,0x01,0xd9,0x96,0x0c,0x64,0x87,0xfd,0x74,0xba,0x65,0x96,0x48,0x12,0x54,0x80};
    sm2_fp_from_bytes(a, a56);
    sm2_fp_tpl(c, a);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c56, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_tpl");
    }

    static std::uint8_t a57[32] = {0x3b,0xc8,0x52,0xa2,0xfe,0xad,0x24,0x02,0xa0,0x6a,0x8a,0x67,0x4f,0xfb,0x18,0x1e,0x83,0xa7,0xb9,0xad,0x30,0x2e,0x35,0xfa,0x91,0x25,0x40,0x93,0x36,0x41,0xb3,0x8e};
    static std::uint8_t c57[32] = {0xb3,0x58,0xf7,0xe8,0xfc,0x07,0x6c,0x07,0xe1,0x3f,0x9f,0x35,0xef,0xf1,0x48,0x5b,0x8a,0xf7,0x2d,0x07,0x90,0x8a,0xa1,0xef,0xb3,0x6f,0xc1,0xb9,0xa2,0xc5,0x1a,0xaa};
    sm2_fp_from_bytes(a, a57);
    sm2_fp_tpl(c, a);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c57, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_tpl");
    }

    static std::uint8_t a58[32] = {0x89,0x82,0x99,0x67,0x54,0x95,0x15,0xe7,0xad,0xb0,0x8c,0x76,0xc4,0xb1,0x53,0x9a,0xe9,0x12,0xdb,0xee,0xde,0x53,0xae,0xfc,0x23,0x66,0xa8,0xb9,0xc3,0x71,0xa5,0x48};
    static std::uint8_t c58[32] = {0x9c,0x87,0xcc,0x36,0xfd,0xbf,0x41,0xb7,0x09,0x11,0xa5,0x64,0x4e,0x13,0xfa,0xd0,0xbb,0x38,0x93,0xcd,0x9a,0xfb,0x0c,0xf3,0x6a,0x33,0xfa,0x2d,0x4a,0x54,0xef,0xd9};
    sm2_fp_from_bytes(a, a58);
    sm2_fp_tpl(c, a);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c58, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_tpl");
    }

    static std::uint8_t a59[32] = {0x44,0x9c,0x38,0xf6,0x4e,0xb3,0x30,0x23,0x05,0x7f,0xf4,0xf9,0x0d,0x67,0x46,0x4d,0x30,0xd1,0xac,0x61,0xb6,0x6e,0xda,0x4c,0x91,0xf1,0x75,0xdc,0xaf,0x6c,0x8b,0x1b};
    static std::uint8_t c59[32] = {0xcd,0xd4,0xaa,0xe2,0xec,0x19,0x90,0x69,0x10,0x7f,0xde,0xeb,0x28,0x35,0xd2,0xe7,0x92,0x75,0x05,0x25,0x23,0x4c,0x8e,0xe5,0xb5,0xd4,0x61,0x96,0x0e,0x45,0xa1,0x51};
    sm2_fp_from_bytes(a, a59);
    sm2_fp_tpl(c, a);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c59, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_tpl");
    }

    static std::uint8_t a60[32] = {0xfb,0xde,0x52,0x3c,0x47,0x9d,0xdb,0xae,0x53,0xce,0x71,0x16,0x21,0xb8,0x4a,0x46,0x81,0x07,0xe3,0xb8,0x3b,0x12,0xf7,0xcc,0x8d,0xf9,0x78,0xf8,0xd3,0x57,0xec,0x46};
    static std::uint8_t c60[32] = {0xf3,0x9a,0xf6,0xb6,0xd6,0xd9,0x93,0x0a,0xfb,0x6b,0x53,0x42,0x65,0x28,0xde,0xd3,0x83,0x17,0xab,0x2a,0xb1,0x38,0xe7,0x63,0xa9,0xec,0x6a,0xea,0x7a,0x07,0xc4,0xd4};
    sm2_fp_from_bytes(a, a60);
    sm2_fp_tpl(c, a);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c60, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_tpl");
    }

    static std::uint8_t a61[32] = {0xc2,0x60,0x80,0xab,0x70,0xa9,0xd3,0x2b,0x5c,0x8a,0x2d,0x50,0x17,0x99,0xd2,0xf8,0x42,0xdd,0xc6,0x3e,0x3e,0xc0,0xf5,0xb2,0x6b,0x9c,0xb6,0x72,0x23,0xf2,0xd8,0x3e};
    static std::uint8_t c61[32] = {0x47,0x21,0x82,0x04,0x51,0xfd,0x79,0x82,0x15,0x9e,0x87,0xf0,0x46,0xcd,0x78,0xe8,0xc8,0x99,0x52,0xbc,0xbc,0x42,0xe1,0x15,0x42,0xd6,0x23,0x56,0x6b,0xd8,0x88,0xbc};
    sm2_fp_from_bytes(a, a61);
    sm2_fp_tpl(c, a);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c61, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_tpl");
    }

    static std::uint8_t a62[32] = {0xcd,0x7f,0x23,0x1e,0xf3,0x53,0xec,0xb7,0xfe,0x1e,0xe6,0x60,0x2f,0xf2,0x43,0x39,0xfd,0x7d,0x82,0x13,0xcd,0x90,0x2a,0x5d,0xec,0x6e,0xe2,0xbc,0x47,0x40,0x8b,0x48};
    static std::uint8_t c62[32] = {0x68,0x7d,0x69,0x5e,0xd9,0xfb,0xc6,0x27,0xfa,0x5c,0xb3,0x20,0x8f,0xd6,0xc9,0xad,0xf8,0x78,0x86,0x3d,0x68,0xb0,0x7f,0x17,0xc5,0x4c,0xa8,0x34,0xd5,0xc1,0xa1,0xda};
    sm2_fp_from_bytes(a, a62);
    sm2_fp_tpl(c, a);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c62, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_tpl");
    }

    static std::uint8_t a63[32] = {0x88,0x6f,0x8d,0x5e,0xcc,0xef,0xd4,0xdd,0xbd,0x91,0x33,0x80,0x46,0xb4,0x1d,0x1d,0xfb,0x84,0xc6,0x99,0x19,0xf5,0x51,0x18,0xf3,0xb1,0x76,0xe3,0x8b,0xf7,0x22,0xaa};
    static std::uint8_t c63[32] = {0x99,0x4e,0xa8,0x1d,0x66,0xcf,0x7e,0x99,0x38,0xb3,0x9a,0x80,0xd4,0x1c,0x57,0x59,0xf2,0x8e,0x53,0xcc,0x4d,0xdf,0xf3,0x49,0xdb,0x14,0x64,0xaa,0xa3,0xe5,0x67,0xff};
    sm2_fp_from_bytes(a, a63);
    sm2_fp_tpl(c, a);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c63, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_tpl");
    }

    static std::uint8_t a64[32] = {0x62,0x77,0x24,0x74,0x3f,0x51,0x0c,0xf4,0xf2,0xc0,0xef,0x72,0x88,0xf2,0x3d,0x14,0x00,0x8e,0x2f,0x23,0x16,0xb7,0x10,0xea,0xd9,0x67,0x6f,0x3e,0xa4,0x1f,0xb4,0x41};
    static std::uint8_t c64[32] = {0x27,0x65,0x6d,0x5d,0xbd,0xf3,0x26,0xde,0xd8,0x42,0xce,0x57,0x9a,0xd6,0xb7,0x3c,0x01,0xaa,0x8d,0x6a,0x44,0x25,0x32,0xbf,0x8c,0x36,0x4d,0xbb,0xec,0x5f,0x1c,0xc4};
    sm2_fp_from_bytes(a, a64);
    sm2_fp_tpl(c, a);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c64, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_tpl");
    }

    static std::uint8_t a65[32] = {0x9d,0x1d,0x25,0x7a,0x14,0x3b,0xe0,0x5b,0x1f,0xad,0xaf,0xaf,0x2b,0xb8,0xcd,0xeb,0x90,0x7e,0xe1,0xcb,0x67,0xf5,0x11,0xb6,0x0a,0x4f,0x44,0x02,0xa6,0x9f,0x77,0x30};
    static std::uint8_t c65[32] = {0xd7,0x57,0x70,0x6f,0x3c,0xb3,0xa1,0x11,0x5f,0x09,0x0f,0x0d,0x83,0x2a,0x69,0xc2,0xb1,0x7c,0xa5,0x63,0x37,0xdf,0x35,0x21,0x1e,0xed,0xcc,0x07,0xf3,0xde,0x65,0x91};
    sm2_fp_from_bytes(a, a65);
    sm2_fp_tpl(c, a);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c65, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_tpl");
    }

    static std::uint8_t a66[32] = {0x27,0x81,0x64,0xf3,0x2d,0x90,0x3f,0x8e,0xc8,0x55,0x39,0x87,0x01,0xc7,0x7f,0x0f,0x80,0xea,0x12,0x81,0x5c,0x8c,0x58,0x01,0xea,0xd1,0x7f,0xb2,0xd4,0x20,0x7e,0x99};
    static std::uint8_t c66[32] = {0x76,0x84,0x2e,0xd9,0x88,0xb0,0xbe,0xac,0x58,0xff,0xac,0x95,0x05,0x56,0x7d,0x2e,0x82,0xbe,0x37,0x84,0x15,0xa5,0x08,0x05,0xc0,0x74,0x7f,0x18,0x7c,0x61,0x7b,0xcb};
    sm2_fp_from_bytes(a, a66);
    sm2_fp_tpl(c, a);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c66, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_tpl");
    }

    static std::uint8_t a67[32] = {0xfe,0x71,0xdc,0xf3,0xdb,0x87,0x05,0x76,0x61,0x53,0x5a,0x0b,0x78,0x54,0x63,0x8f,0x60,0x52,0x3c,0x95,0x12,0x16,0xdb,0x92,0xd0,0xe0,0xc5,0xb2,0x55,0xeb,0x85,0x8c};
    static std::uint8_t c67[32] = {0xfb,0x55,0x96,0xdd,0x92,0x95,0x10,0x63,0x23,0xfa,0x0e,0x22,0x68,0xfd,0x2a,0xae,0x20,0xf6,0xb5,0xc1,0x36,0x44,0x92,0xb6,0x72,0xa2,0x51,0x17,0x01,0xc2,0x90,0xa6};
    sm2_fp_from_bytes(a, a67);
    sm2_fp_tpl(c, a);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c67, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_tpl");
    }

    static std::uint8_t a68[32] = {0xcd,0x4f,0xb1,0x35,0x4e,0xc9,0x9e,0x8d,0x9b,0x68,0xe8,0x60,0x7f,0x02,0x0b,0x4a,0x5d,0xe5,0xc2,0x21,0xbc,0xe3,0xcc,0xb2,0xad,0x50,0xc4,0x94,0x85,0xcf,0x01,0x01};
    static std::uint8_t c68[32] = {0x67,0xef,0x13,0xa1,0xec,0x5c,0xdb,0xa8,0xd2,0x3a,0xb9,0x21,0x7d,0x06,0x21,0xdf,0x19,0xb1,0x46,0x67,0x36,0xab,0x66,0x16,0x07,0xf2,0x4d,0xbd,0x91,0x6d,0x03,0x05};
    sm2_fp_from_bytes(a, a68);
    sm2_fp_tpl(c, a);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c68, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_tpl");
    }

    static std::uint8_t a69[32] = {0x29,0x42,0x2a,0x09,0xd9,0x4b,0xd3,0x7d,0xa1,0xb6,0x49,0x80,0xcd,0xf8,0x58,0xfd,0xe7,0xf5,0xa4,0x0f,0x4f,0xea,0x7e,0xf1,0x91,0x3f,0xef,0x2f,0xbb,0xb4,0xaf,0x64};
    static std::uint8_t c69[32] = {0x7b,0xc6,0x7e,0x1d,0x8b,0xe3,0x7a,0x78,0xe5,0x22,0xdc,0x82,0x69,0xe9,0x0a,0xf9,0xb7,0xe0,0xec,0x2d,0xef,0xbf,0x7c,0xd4,0xb3,0xbf,0xcd,0x8f,0x33,0x1e,0x0e,0x2c};
    sm2_fp_from_bytes(a, a69);
    sm2_fp_tpl(c, a);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c69, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_tpl");
    }

    static std::uint8_t a70[32] = {0x4c,0xed,0x3d,0x8f,0x38,0x7e,0xd1,0x2d,0xe8,0x2a,0xd4,0xb5,0x6f,0x3e,0x46,0x64,0x31,0x9a,0xaa,0x0e,0x73,0x59,0x61,0x3e,0x02,0x69,0xf6,0x12,0xde,0x38,0xc1,0x40};
    static std::uint8_t c70[32] = {0xe6,0xc7,0xb8,0xad,0xa9,0x7c,0x73,0x89,0xb8,0x80,0x7e,0x20,0x4d,0xba,0xd3,0x2c,0x94,0xcf,0xfe,0x2b,0x5a,0x0c,0x23,0xba,0x07,0x3d,0xe2,0x38,0x9a,0xaa,0x43,0xc0};
    sm2_fp_from_bytes(a, a70);
    sm2_fp_tpl(c, a);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c70, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_tpl");
    }

    static std::uint8_t a71[32] = {0xcb,0xb4,0x34,0x61,0x2c,0xe9,0x9c,0x53,0xb2,0xe7,0xe3,0x95,0x3e,0xb1,0x48,0xe4,0x46,0x34,0xa5,0xd3,0x10,0x10,0xd4,0xfa,0x92,0x69,0x29,0x0f,0xf8,0x24,0x19,0xe9};
    static std::uint8_t c71[32] = {0x63,0x1c,0x9d,0x25,0x86,0xbc,0xd4,0xfb,0x18,0xb7,0xaa,0xbf,0xbc,0x13,0xda,0xac,0xd2,0x9d,0xf1,0x7b,0x30,0x32,0x7e,0xed,0xb7,0x3b,0x7b,0x2f,0xe8,0x6c,0x4d,0xbd};
    sm2_fp_from_bytes(a, a71);
    sm2_fp_tpl(c, a);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c71, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_tpl");
    }

    static std::uint8_t a72[32] = {0x6c,0xc1,0xeb,0x31,0x58,0xfd,0xdd,0x2d,0x47,0x58,0x86,0xc6,0x14,0xa0,0x43,0x4a,0xed,0x5f,0x7c,0x4f,0x93,0xfe,0xf1,0xb9,0x7c,0xd1,0x0a,0x91,0x48,0x08,0x97,0x94};
    static std::uint8_t c72[32] = {0x46,0x45,0xc1,0x95,0x0a,0xf9,0x97,0x87,0xd6,0x09,0x94,0x52,0x3d,0xe0,0xc9,0xe0,0xc8,0x1e,0x74,0xef,0xbb,0xfc,0xd5,0x2b,0x76,0x73,0x1f,0xb3,0xd8,0x19,0xc6,0xbd};
    sm2_fp_from_bytes(a, a72);
    sm2_fp_tpl(c, a);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c72, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_tpl");
    }

    static std::uint8_t a73[32] = {0xf9,0xe7,0x55,0xfe,0x82,0xc3,0x34,0x75,0xf8,0xb0,0x7e,0xb8,0xf2,0x58,0x33,0x3f,0x30,0x36,0x07,0x82,0xba,0x82,0x24,0x1d,0xfb,0x4a,0x2b,0xcc,0xf8,0xc0,0x23,0xd3};
    static std::uint8_t c73[32] = {0xed,0xb6,0x01,0xfd,0x88,0x49,0x9d,0x61,0xea,0x11,0x7c,0x2a,0xd7,0x08,0x99,0xbd,0x90,0xa2,0x16,0x8a,0x2f,0x86,0x6c,0x57,0xf1,0xde,0x83,0x66,0xea,0x40,0x6b,0x7b};
    sm2_fp_from_bytes(a, a73);
    sm2_fp_tpl(c, a);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c73, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_tpl");
    }

    static std::uint8_t a74[32] = {0xe9,0xcb,0xe3,0xc0,0x0c,0x3b,0xf9,0xf7,0x05,0x98,0xf9,0xbd,0xaf,0xdf,0xbc,0xd9,0x9f,0x44,0x25,0xd1,0xe5,0x9a,0x4e,0x9c,0xfa,0xa2,0x2a,0x3f,0x41,0x1f,0x00,0xaa};
    static std::uint8_t c74[32] = {0xbd,0x63,0xab,0x42,0x24,0xb3,0xed,0xe5,0x10,0xca,0xed,0x39,0x0f,0x9f,0x36,0x8c,0xdd,0xcc,0x71,0x77,0xb0,0xce,0xeb,0xd4,0xef,0xe6,0x7e,0xbd,0xc3,0x5d,0x02,0x00};
    sm2_fp_from_bytes(a, a74);
    sm2_fp_tpl(c, a);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c74, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_tpl");
    }

    static std::uint8_t a75[32] = {0x8c,0x87,0x9c,0x3b,0x3c,0x20,0x76,0x99,0x3f,0xe1,0xd9,0xa1,0xd5,0x2a,0x8d,0x0d,0x78,0x35,0xfe,0x13,0x12,0x0a,0xa9,0xa2,0x85,0xb6,0x29,0x68,0x10,0x98,0x6a,0x31};
    static std::uint8_t c75[32] = {0xa5,0x96,0xd4,0xb2,0xb4,0x61,0x63,0xcb,0xbf,0xa5,0x8c,0xe5,0x7f,0x7f,0xa7,0x28,0x68,0xa1,0xfa,0x3a,0x36,0x1f,0xfc,0xe6,0x91,0x22,0x7c,0x38,0x31,0xc9,0x3e,0x94};
    sm2_fp_from_bytes(a, a75);
    sm2_fp_tpl(c, a);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c75, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_tpl");
    }

    static std::uint8_t a76[32] = {0xe1,0xb2,0x1a,0x5e,0x5b,0x20,0xa8,0x7b,0x95,0x75,0xe3,0x3e,0xc8,0x8c,0xcd,0x0c,0x67,0x87,0x3b,0x26,0xaa,0xee,0xa0,0x7e,0x4a,0xad,0x40,0x9d,0x69,0x70,0xc1,0x34};
    static std::uint8_t c76[32] = {0xa5,0x16,0x4f,0x1d,0x11,0x61,0xf9,0x72,0xc0,0x61,0xa9,0xbc,0x59,0xa6,0x67,0x25,0x36,0x95,0xb1,0x76,0x00,0xcb,0xe1,0x78,0xe0,0x07,0xc1,0xd8,0x3c,0x52,0x43,0x9e};
    sm2_fp_from_bytes(a, a76);
    sm2_fp_tpl(c, a);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c76, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_tpl");
    }

    static std::uint8_t a77[32] = {0x69,0x77,0xaf,0x4b,0x10,0xca,0x50,0x04,0xcd,0xa7,0x2f,0x3c,0x7c,0x28,0x74,0x73,0x92,0xb9,0x11,0xdd,0x38,0x22,0xf6,0x7e,0x30,0xa8,0xd8,0x48,0x63,0x71,0x46,0x7d};
    static std::uint8_t c77[32] = {0x3c,0x67,0x0d,0xe2,0x32,0x5e,0xf0,0x0e,0x68,0xf5,0x8d,0xb5,0x74,0x79,0x5d,0x5a,0xb8,0x2b,0x35,0x98,0xa8,0x68,0xe3,0x79,0x91,0xfa,0x88,0xd9,0x2a,0x53,0xd3,0x78};
    sm2_fp_from_bytes(a, a77);
    sm2_fp_tpl(c, a);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c77, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_tpl");
    }

    static std::uint8_t a78[32] = {0xad,0x85,0xe0,0xfe,0xa2,0x1c,0x69,0x8b,0xed,0xdc,0x79,0xd3,0x32,0x38,0x8c,0xf2,0x23,0x88,0xd9,0x70,0xb7,0x77,0x06,0xc7,0x44,0x87,0x1b,0xea,0x86,0x2e,0x86,0xb9};
    static std::uint8_t c78[32] = {0x08,0x91,0xa2,0xfd,0xe6,0x55,0x3c,0xa3,0xc9,0x95,0x6d,0x79,0x96,0xa9,0xa6,0xd6,0x6a,0x9a,0x8c,0x54,0x26,0x65,0x14,0x53,0xcd,0x95,0x53,0xbf,0x92,0x8b,0x94,0x2d};
    sm2_fp_from_bytes(a, a78);
    sm2_fp_tpl(c, a);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c78, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_tpl");
    }

    static std::uint8_t a79[32] = {0xdc,0xda,0x2a,0x8f,0x51,0xd4,0x5d,0x44,0x31,0x18,0x39,0xa0,0xbd,0xd3,0xb5,0x62,0x1d,0x97,0xed,0x6c,0xe0,0x64,0x7b,0xdb,0x17,0x27,0x68,0x22,0x05,0xd9,0x0c,0x7f};
    static std::uint8_t c79[32] = {0x96,0x8e,0x7f,0xaf,0xf5,0x7d,0x17,0xcc,0x93,0x48,0xac,0xe2,0x39,0x7b,0x20,0x26,0x58,0xc7,0xc8,0x48,0xa1,0x2d,0x73,0x8f,0x45,0x76,0x38,0x66,0x11,0x8b,0x25,0x7f};
    sm2_fp_from_bytes(a, a79);
    sm2_fp_tpl(c, a);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c79, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_tpl");
    }

    static std::uint8_t a80[32] = {0x8d,0x02,0xc1,0xc3,0x84,0x00,0x50,0xbd,0x2b,0x6d,0xb0,0x54,0x19,0x57,0xc4,0x10,0x83,0x54,0x29,0x6b,0x61,0xfa,0x77,0x62,0x82,0x3a,0x4c,0xef,0xc7,0x28,0xea,0xf7};
    static std::uint8_t c80[32] = {0xa7,0x08,0x45,0x4b,0x8c,0x00,0xf2,0x37,0x82,0x49,0x10,0xfc,0x4c,0x07,0x4c,0x31,0x89,0xfc,0x7c,0x43,0x25,0xef,0x66,0x26,0x86,0xae,0xe6,0xcf,0x55,0x7a,0xc0,0xe6};
    sm2_fp_from_bytes(a, a80);
    sm2_fp_tpl(c, a);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c80, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_tpl");
    }

    static std::uint8_t a81[32] = {0xec,0xbb,0xfb,0x5d,0xda,0x00,0xe5,0x7d,0x90,0x26,0x72,0x10,0x22,0x75,0xc7,0x9a,0x7f,0x59,0x1e,0xcd,0x75,0xde,0x69,0x90,0x14,0x60,0x41,0x50,0x7d,0x26,0x0c,0x23};
    static std::uint8_t c81[32] = {0xc6,0x33,0xf2,0x1b,0x8e,0x02,0xb0,0x78,0xb0,0x73,0x56,0x30,0x67,0x61,0x56,0xcf,0x7e,0x0b,0x5c,0x6a,0x61,0x9b,0x3c,0xae,0x3d,0x20,0xc3,0xf1,0x77,0x72,0x24,0x6b};
    sm2_fp_from_bytes(a, a81);
    sm2_fp_tpl(c, a);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c81, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_tpl");
    }

    static std::uint8_t a82[32] = {0xb4,0x70,0x35,0xcc,0x89,0xf8,0x84,0x90,0x3c,0x34,0x20,0x7e,0x4b,0xff,0x00,0x29,0xd7,0xa7,0x50,0x9a,0x87,0x30,0x74,0xe6,0x5a,0x98,0x40,0x7c,0x74,0xe0,0x3d,0x3b};
    static std::uint8_t c82[32] = {0x1d,0x50,0xa1,0x67,0x9d,0xe9,0x8d,0xb0,0xb4,0x9c,0x61,0x7a,0xe3,0xfd,0x00,0x7d,0x86,0xf5,0xf1,0xd1,0x95,0x91,0x5e,0xb1,0x0f,0xc8,0xc1,0x75,0x5e,0xa0,0xb7,0xb3};
    sm2_fp_from_bytes(a, a82);
    sm2_fp_tpl(c, a);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c82, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_tpl");
    }

    static std::uint8_t a83[32] = {0xa4,0xf0,0x18,0x99,0x08,0x67,0x55,0x3a,0xe1,0x74,0x7f,0xed,0x72,0x4d,0x20,0x50,0x79,0xe5,0x3b,0x53,0xc8,0x4c,0xbc,0x2a,0x80,0x14,0xd6,0xfb,0xe3,0x1b,0x24,0x05};
    static std::uint8_t c83[32] = {0xee,0xd0,0x49,0xcc,0x19,0x35,0xff,0xb0,0xa4,0x5d,0x7f,0xc8,0x56,0xe7,0x60,0xf1,0x6d,0xaf,0xb1,0xfc,0x58,0xe6,0x34,0x7e,0x80,0x3e,0x84,0xf3,0xa9,0x51,0x6c,0x10};
    sm2_fp_from_bytes(a, a83);
    sm2_fp_tpl(c, a);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c83, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_tpl");
    }

    static std::uint8_t a84[32] = {0x4a,0xdb,0xe3,0x6e,0x46,0x66,0xf4,0xe9,0x7a,0xa1,0x9f,0xb0,0x3a,0x93,0xce,0x4b,0x44,0x4d,0xd5,0x27,0x7a,0x56,0x3f,0x44,0xbe,0x70,0x31,0x90,0x78,0x66,0xc3,0x32};
    static std::uint8_t c84[32] = {0xe0,0x93,0xaa,0x4a,0xd3,0x34,0xde,0xbc,0x6f,0xe4,0xdf,0x10,0xaf,0xbb,0x6a,0xe1,0xcc,0xe9,0x7f,0x76,0x6f,0x02,0xbd,0xce,0x3b,0x50,0x94,0xb1,0x69,0x34,0x49,0x96};
    sm2_fp_from_bytes(a, a84);
    sm2_fp_tpl(c, a);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c84, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_tpl");
    }

    static std::uint8_t a85[32] = {0x4c,0x53,0x7e,0xc7,0x6e,0xfe,0xbd,0xc7,0x3c,0xdc,0xa3,0xf6,0xe0,0xea,0x92,0xc4,0x70,0x93,0x1c,0x3c,0xaf,0xe5,0x77,0xd6,0xef,0x15,0xff,0xe3,0x9a,0x22,0x94,0x2e};
    static std::uint8_t c85[32] = {0xe4,0xfa,0x7c,0x56,0x4c,0xfc,0x39,0x55,0xb6,0x95,0xeb,0xe4,0xa2,0xbf,0xb8,0x4d,0x51,0xb9,0x54,0xb6,0x0f,0xb0,0x67,0x84,0xcd,0x41,0xff,0xaa,0xce,0x67,0xbc,0x8a};
    sm2_fp_from_bytes(a, a85);
    sm2_fp_tpl(c, a);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c85, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_tpl");
    }

    static std::uint8_t a86[32] = {0xe8,0xae,0x88,0x84,0x23,0x3c,0xc0,0x1a,0x26,0xe5,0x47,0x1d,0xbd,0x72,0xec,0x54,0xb6,0x1d,0x49,0xbb,0xb2,0xe1,0xde,0xcc,0x7c,0x16,0xec,0x86,0xef,0xfc,0x9c,0xff};
    static std::uint8_t c86[32] = {0xba,0x0b,0x99,0x8e,0x69,0xb6,0x40,0x4e,0x74,0xaf,0xd5,0x59,0x38,0x58,0xc4,0xfe,0x22,0x57,0xdd,0x35,0x18,0xa5,0x9c,0x63,0x74,0x44,0xc5,0x94,0xcf,0xf5,0xd6,0xff};
    sm2_fp_from_bytes(a, a86);
    sm2_fp_tpl(c, a);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c86, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_tpl");
    }

    static std::uint8_t a87[32] = {0xa5,0x62,0x5e,0x6c,0xa2,0xc0,0x1d,0x55,0xe6,0x1a,0xd3,0x3a,0xfa,0x7b,0xbf,0x38,0x73,0x16,0x90,0x63,0x70,0x47,0x8d,0x11,0xb9,0xc9,0x06,0x03,0x81,0xc4,0x64,0x7e};
    static std::uint8_t c87[32] = {0xf0,0x27,0x1b,0x46,0xe8,0x40,0x58,0x01,0xb2,0x50,0x79,0xb0,0xef,0x73,0x3d,0xa9,0x59,0x43,0xb1,0x2b,0x50,0xd6,0xa7,0x34,0x2d,0x5b,0x12,0x0a,0x85,0x4d,0x2d,0x7b};
    sm2_fp_from_bytes(a, a87);
    sm2_fp_tpl(c, a);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c87, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_tpl");
    }

    static std::uint8_t a88[32] = {0x26,0x95,0xe8,0x4b,0xa5,0x15,0xfd,0x4c,0x3e,0xf6,0xd1,0x99,0xdc,0x10,0xb2,0xbb,0xb0,0x57,0x7f,0x92,0x23,0xf3,0x05,0x98,0x81,0xb6,0x2e,0x70,0xb8,0x27,0x9d,0x2c};
    static std::uint8_t c88[32] = {0x73,0xc1,0xb8,0xe2,0xef,0x41,0xf7,0xe4,0xbc,0xe4,0x74,0xcd,0x94,0x32,0x18,0x33,0x11,0x06,0x7e,0xb6,0x6b,0xd9,0x10,0xc9,0x85,0x22,0x8b,0x52,0x28,0x76,0xd7,0x84};
    sm2_fp_from_bytes(a, a88);
    sm2_fp_tpl(c, a);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c88, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_tpl");
    }

    static std::uint8_t a89[32] = {0x8d,0x59,0xdb,0xa5,0x4f,0x3e,0x5c,0x20,0x3e,0x6c,0x95,0x98,0x22,0x8c,0xab,0x10,0xaf,0x72,0xaf,0x7d,0xd5,0xd7,0x3c,0xa6,0xfe,0xf2,0x25,0x13,0x60,0x0d,0xd5,0xf9};
    static std::uint8_t c89[32] = {0xa8,0x0d,0x92,0xf0,0xed,0xbb,0x14,0x60,0xbb,0x45,0xc0,0xc8,0x67,0xa6,0x01,0x32,0x0e,0x58,0x0e,0x7a,0x81,0x85,0xb5,0xf3,0xfc,0xd6,0x6f,0x3a,0x20,0x29,0x81,0xec};
    sm2_fp_from_bytes(a, a89);
    sm2_fp_tpl(c, a);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c89, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_tpl");
    }

    static std::uint8_t a90[32] = {0x7a,0x3e,0xc7,0x61,0xbe,0x29,0xb7,0xbd,0xbd,0x39,0x1b,0xc6,0x8e,0x35,0x46,0xe3,0xe2,0xdc,0x62,0x01,0xb5,0x63,0x3e,0xd7,0x93,0xf4,0x76,0xfa,0xb7,0xf5,0xcd,0x0d};
    static std::uint8_t c90[32] = {0x6e,0xbc,0x56,0x26,0x3a,0x7d,0x27,0x39,0x37,0xab,0x53,0x53,0xaa,0x9f,0xd4,0xab,0xa8,0x95,0x26,0x06,0x20,0x29,0xbc,0x85,0xbb,0xdd,0x64,0xf0,0x27,0xe1,0x67,0x28};
    sm2_fp_from_bytes(a, a90);
    sm2_fp_tpl(c, a);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c90, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_tpl");
    }

    static std::uint8_t a91[32] = {0x2d,0xe7,0x60,0x6e,0x63,0xe0,0x8d,0xee,0x7a,0x27,0x10,0x9f,0x6f,0xb3,0xec,0x13,0x6a,0x1b,0x5d,0x44,0x7d,0x5c,0x31,0x0e,0x94,0x9b,0x5b,0x74,0xbe,0x3f,0xec,0xf9};
    static std::uint8_t c91[32] = {0x89,0xb6,0x21,0x4b,0x2b,0xa1,0xa9,0xcb,0x6e,0x75,0x31,0xde,0x4f,0x1b,0xc4,0x3a,0x3e,0x52,0x17,0xcd,0x78,0x14,0x93,0x2b,0xbd,0xd2,0x12,0x5e,0x3a,0xbf,0xc6,0xeb};
    sm2_fp_from_bytes(a, a91);
    sm2_fp_tpl(c, a);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c91, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_tpl");
    }

    static std::uint8_t a92[32] = {0xf0,0xc8,0x57,0xe4,0x39,0x31,0x5c,0xca,0xef,0x47,0x2b,0x73,0xaf,0x88,0xdd,0x29,0xb7,0x81,0xb1,0xaa,0x53,0xea,0xdd,0xe3,0x6e,0x64,0xd7,0xb5,0x4d,0xaf,0x94,0x2e};
    static std::uint8_t c92[32] = {0xd2,0x59,0x07,0xae,0xab,0x94,0x16,0x60,0xcd,0xd5,0x82,0x5b,0x0e,0x9a,0x97,0x7d,0x26,0x85,0x15,0x00,0xfb,0xc0,0x99,0xa8,0x4b,0x2e,0x87,0x1f,0xe9,0x0e,0xbc,0x8c};
    sm2_fp_from_bytes(a, a92);
    sm2_fp_tpl(c, a);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c92, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_tpl");
    }

    static std::uint8_t a93[32] = {0xd9,0xc5,0xe1,0x3b,0x10,0x5b,0xef,0x41,0x26,0xd5,0xab,0x25,0xa2,0x1a,0x2f,0xa8,0x42,0x00,0x57,0xdf,0x7c,0xe9,0x65,0x86,0x1f,0xd8,0x49,0xb7,0xcb,0x87,0x49,0xed};
    static std::uint8_t c93[32] = {0x8d,0x51,0xa3,0xb3,0x31,0x13,0xcd,0xc3,0x74,0x81,0x01,0x70,0xe6,0x4e,0x8e,0xf8,0xc6,0x01,0x07,0xa0,0x76,0xbc,0x30,0x90,0x5f,0x88,0xdd,0x27,0x62,0x95,0xdd,0xc9};
    sm2_fp_from_bytes(a, a93);
    sm2_fp_tpl(c, a);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c93, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_tpl");
    }

    static std::uint8_t a94[32] = {0xfa,0xbd,0xbe,0x30,0x87,0x10,0x1e,0xbe,0x33,0x6b,0x47,0x88,0x16,0x24,0xb7,0x85,0x53,0xfd,0xdf,0x1a,0x0b,0x98,0x77,0x83,0xa6,0x45,0x82,0xf0,0x58,0x7d,0xc5,0x3e};
    static std::uint8_t c94[32] = {0xf0,0x39,0x3a,0x93,0x95,0x30,0x5c,0x3a,0x9a,0x41,0xd6,0x98,0x42,0x6e,0x26,0x8f,0xfb,0xf9,0x9d,0x50,0x22,0xc9,0x66,0x88,0xf2,0xd0,0x88,0xd1,0x09,0x79,0x4f,0xbc};
    sm2_fp_from_bytes(a, a94);
    sm2_fp_tpl(c, a);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c94, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_tpl");
    }

    static std::uint8_t a95[32] = {0xb8,0x3d,0x41,0xa6,0xa0,0x09,0x9c,0x72,0xaf,0xfc,0xea,0xc7,0x53,0x37,0x92,0xa5,0xd2,0x08,0x36,0x57,0x2e,0xc2,0x32,0xa6,0xdb,0xd7,0x20,0xaa,0xce,0xdc,0x1f,0x55};
    static std::uint8_t c95[32] = {0x28,0xb7,0xc4,0xf5,0xe0,0x1c,0xd5,0x58,0x0f,0xf6,0xc0,0x55,0xf9,0xa6,0xb7,0xf1,0x76,0x18,0xa3,0x07,0x8c,0x46,0x97,0xf2,0x93,0x85,0x62,0x00,0x6c,0x94,0x5e,0x01};
    sm2_fp_from_bytes(a, a95);
    sm2_fp_tpl(c, a);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c95, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_tpl");
    }

    static std::uint8_t a96[32] = {0xb2,0xa0,0x5b,0x63,0xca,0x99,0x7b,0x7b,0x85,0x01,0xbf,0xa6,0x2d,0xcf,0x7f,0x39,0x7e,0xa8,0xe6,0xfb,0xf0,0x63,0xc2,0x82,0x39,0xa5,0xd5,0x58,0x72,0x5e,0x2a,0x59};
    static std::uint8_t c96[32] = {0x17,0xe1,0x12,0x2d,0x5f,0xcc,0x72,0x72,0x8f,0x05,0x3e,0xf2,0x89,0x6e,0x7d,0xac,0x7b,0xfa,0xb4,0xf5,0xd1,0x2b,0x47,0x84,0xac,0xf1,0x80,0x09,0x57,0x1a,0x7f,0x0d};
    sm2_fp_from_bytes(a, a96);
    sm2_fp_tpl(c, a);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c96, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_tpl");
    }

    static std::uint8_t a97[32] = {0xc0,0x4d,0x34,0x0c,0x2d,0xd4,0x5b,0x90,0x3e,0x16,0x84,0xf3,0x4d,0x12,0x23,0xc6,0x8f,0xe9,0xbc,0x98,0x22,0x9a,0x6b,0xff,0xe8,0x43,0x21,0x2b,0x4b,0x0f,0x4a,0xc7};
    static std::uint8_t c97[32] = {0x40,0xe7,0x9c,0x26,0x89,0x7d,0x12,0xb0,0xba,0x43,0x8e,0xd9,0xe7,0x36,0x6b,0x53,0xaf,0xbd,0x35,0xca,0x67,0xcf,0x43,0xfd,0xb8,0xc9,0x63,0x81,0xe1,0x2d,0xe0,0x57};
    sm2_fp_from_bytes(a, a97);
    sm2_fp_tpl(c, a);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c97, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_tpl");
    }

    static std::uint8_t a98[32] = {0xc8,0xfb,0xdc,0x3a,0x5f,0xf3,0xc2,0x1b,0xec,0xbf,0x2c,0x9c,0x8e,0xa5,0x7f,0x73,0x1e,0xe4,0x05,0xca,0x92,0xb1,0x34,0x94,0xf2,0x4c,0x3e,0x07,0x87,0x94,0xaf,0x09};
    static std::uint8_t c98[32] = {0x5a,0xf3,0x94,0xb1,0x1f,0xdb,0x46,0x53,0xc6,0x3d,0x85,0xd5,0xab,0xf0,0x7e,0x59,0x5c,0xac,0x11,0x61,0xb8,0x13,0x9d,0xbc,0xd6,0xe4,0xba,0x16,0x96,0xbe,0x0d,0x1d};
    sm2_fp_from_bytes(a, a98);
    sm2_fp_tpl(c, a);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c98, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_tpl");
    }

    static std::uint8_t a99[32] = {0xb3,0x06,0x12,0x8d,0x02,0xc2,0x2f,0x19,0xb8,0xf7,0x9c,0xd6,0xe0,0x55,0xd4,0x94,0xea,0x9f,0x94,0x95,0xce,0xf5,0x2f,0x53,0x71,0x7f,0xe1,0xc7,0xba,0xdb,0x9a,0x76};
    static std::uint8_t c99[32] = {0x19,0x12,0x37,0xa9,0x08,0x46,0x8d,0x4d,0x2a,0xe6,0xd6,0x84,0xa1,0x01,0x7d,0xbe,0xbf,0xde,0xbd,0xc3,0x6c,0xdf,0x8d,0xf8,0x54,0x7f,0xa5,0x57,0x30,0x92,0xcf,0x64};
    sm2_fp_from_bytes(a, a99);
    sm2_fp_tpl(c, a);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c99, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_tpl");
    }
}